import request from '@/axios';

/**
 * 用户列表
 */
export const userList = (current, size, params) => {
  return request({
    url: `/biz/search/user`,
    method: 'post',
    params: {
      current,
      size
    },
    data: params,
    cryptoToken: true,
    cryptoData: true
  });
};

/**
 * 用户详细信息
 */
export const getUser = (id) => {
  return request({
    url: `/biz/search/user/detail`,
    method: 'post',
    data: {id:id},
    cryptoToken: true,
    cryptoData: true
  });
};
